* {
    padding: 0;
    margin: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
}

html {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    background-color: #fdfdfb;
}

body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-family: proxima-nova, "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 300;
    color: #444;
    margin: 0;
    padding-top: 50px;
    line-height: 22px;

}

h1, h2, h3, h4 {
    font-weight: normal;
    margin: 1.3em 0 0.2em;
    line-height: 1.4em;
    position: relative;
}

td:first-child {
    padding-right: 8px;
}

td {
    vertical-align: top;
    padding-bottom: 4px;
}

h1:first-child, h2:first-child, h3:first-child, h4:first-child {
    margin-top: 0;
}

h1 {
    font-size: 2em;
    font-weight: bold;
}

h2 {
    font-size: 1.5em;
}

h3 {
    font-size: 1.3em;
}

h4 {
    font-size: 1.1em;
}

p, ul, ol {
    margin:  0 0 1em 0;
}

.wrap {
    width: 960px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px
}

.subhero .wrap {
    width: auto;
    max-width: 960px;
}

.home-section {
    width: 500px;
    margin-left: auto;
    margin-right: auto;
}

code {
    letter-spacing: 0.02em;
    padding-right: 2px;
    padding-left: 4px;
    border-radius: 3px;
}

.highlight pre {
    font-size: 13px;
    line-height: 20px;
    padding: 0 0 20px 20px;
}

.highlighttable {
    margin-left: 20px;
    margin-bottom: 20px;
}

.highlighttable .highlight pre {
    padding: 0;
}

.highlighttable code {
    padding-right: 10px;
    margin: 0;
    padding-left: 2px;
    font-size: 12px;
    display: block;
    line-height: 20px;
    white-space: pre;
    color: hsl(39, 100%, 42%);
}

.highlight pre code, .highlighttable {
    overflow-x: scroll;
    display: block;
    padding: 0;
    font-size: 13px;
    border-left: 4px solid rgb(214, 139, 0);
    padding: 5px 10px;
    box-sizing: border-box;
    border-radius: 0;
    background-color: rgba(226, 141, 49, 0.1);
}

.highlight pre code {
    width: 100%;
    white-space: pre;
}


.lineno {
    color: rgb(214, 139, 0);
}

.lineno::after {
    content: ';';
    font-size: 0;
}


.highlight pre code.language-bash {
    border-left: 4px solid hsl(19, 0%, 42%);
    background-color: hsla(8, 0%, 54%, 0.1);
}

.highlight pre code.language-bbcode {
    border-left: 4px solid hsl(19, 100%, 42%);
    background-color: hsla(8, 75%, 54%, 0.1);
}

.highlight + .highlight + .highlight,
.highlighttable + .highlight + .highlight {
    margin-top: -20px;
}


ul, ol {
    list-style-position: outside;
    margin-left: 1em;
    padding-left: 1em;
}


a {
    text-decoration: none;
    color: #CC2E39;
}

nav.toc a {
    color: #444;
}
nav.toc a.active {
    color: #CC2E39;
}

a.hash-link {
    color: #ccc;
}

a.hash-link:hover {
    color: #CC2E39;
}

.width {
    margin: 0 auto;
    padding: 0 20px;
}

header:after, section.content:after, footer:after {
    clear: both;
    content: ".";
    display: block;
    font-size: 0;
    height: 0;
    line-height: 0;
    visibility: hidden;
}

header.topbar {
    background: #353331;
    color: #EEE;
    position: fixed;
    top: 0;
    height: 50px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    width: 100%;
    z-index: 100;
}

header.topbar .logo {
    height: 30px;
    margin-top: 7px;
}

.fresco-header {
    background-image: url(fresco-hero-logo.png);
    background-size: contain;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    height: 150px;
    margin-bottom: 15px;
}

header.topbar nav ul {
    float: right;
    text-align: right;
    padding: 0;
    margin: 0;
    font-size: 0;
}

header.topbar nav ul li {
    display: inline;
    text-transform: uppercase;
}

header.topbar nav ul li a {
    padding: 0 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 50px;
    display: inline-block;
    height: 50px;
    color: #EEE;
    font-size: 15px;
}

header.topbar nav ul li a.active {
    color: #FFF;
    border-bottom: 3px solid #FBE178;
    background: #333;
}

header.topbar nav ul li a:hover {
    background: #FBE178;
    color: #353331;
}

header.hero {
    padding: 20px 0;
}

header.hero .width {
    text-align: center;
}

header.hero h1 {
    font-size: 4em;
    font-weight: normal;
    color: #bb2910;
    margin: 0;
    line-height: 1.5em;
}

header.hero p {
    margin: 0 0 .5em;
    text-transform: uppercase;
}

header.hero a.button {
    background: #CC2E39;
    color: #ffffff;
    font-weight: bold;
    text-transform: uppercase;
    padding: 10px 20px;
    display: inline-block;
    margin: 1em;
    box-shadow: 0px 1px 2px rgba(0,0,0,0.3);
}

header.subhero {
    padding: 10px 0;
    padding-top: 30px;
}

section.content {
    padding: 20px 0;
}

section.content article ul li,
section.content article ol li {
  margin-bottom: 0.5em;
}


section.content article img {
    display: block;
    margin: 1em auto;
}

section.content article blockquote {
    border-left: 4px solid hsl(19, 100%, 42%);
    padding: 5px 10px;
    margin-left: 20px;
    margin-bottom: 10px;
    font-weight: bold;
}

section.content article blockquote p {
    margin: 0;
}

section.content article blockquote p:first-child {
    float: left;
    margin-right: 5px;
    color: hsl(19, 100%, 42%);
}

section.content article blockquote p {
    font-style: italic;
}

section.content article blockquote small:before {
    content: '\2014 \00A0';
}

section.content article.withtoc {
    position: relative;
}

section.content article .read-more {
  font-weight: bold;
  text-align: right;
}

section.content article hr.blogpostend {
  margin-bottom: 20px;
  margin-top: 20px;
}

section.content aside .fb-like {
    top: 4px;
    left: 4px;
}

.edit-page-link {
    float: right;
    font-size: 12px;
    font-weight: normal;
    line-height: 20px;
    opacity: 0.6;
    transition: opacity 0.5s;
}

.edit-page-link:hover {
  opacity: 1;
}

nav.toc {
    font-size: 14px;
    line-height: 18px;
    margin-bottom: 20px;
}

nav.toc h3 {
    margin: 0.5em 0;
    padding-top: 0.5em;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    line-height: 40px;
}

nav.toc section:first-child h3 {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}

nav.toc ul {
   list-style: none;
   margin: 0;
   padding-left: 0;
}

nav.toc ul li {
    line-height: 20px;
    margin-bottom: 3px;
}

footer {
    padding: 5px 0;
    padding-bottom: 10px;
    font-size: 13px;
    text-align: right;
}

.right {
    float: right;
}

.right a {
    color: #cd4e34;
    padding: 0 5px;
}

.playgroundCode, .playgroundPreview {
    border-left: 4px solid #D68B00;
    margin-left: 20px;
    background-color: rgba(226, 141, 50, 0.1);;
}

.playgroundError {
    padding: 10px;
}

.playgroundPreview {
    margin-top: 10px;
    margin-bottom: 200px;
}

.playground > :first-child {
    display: none;
}

.cm-keyword, .cm-atom {
    font-weight: bold;
}

.cm-number {
    color: #099;
}

.cm-string {
    color: #D01040;
}

.cm-comment {
    color: #998;
    font-style: italic;
}

.CodeMirror-code {
    line-height: 20px;
}
.CodeMirror-cursor {
    margin-top: 4px;
}
div.CodeMirror-lines {
    padding: 5px 0;
}


#\_ {
    display: none;
}

.hash {
    margin-left: 3px;
    visibility: hidden;
}

*:hover > .hash {
    visibility: visible;
}

.hashref {
    position: absolute;
    top: -60px;
    left: 0;
}

/* desktopish */

@media (min-width: 481px) {

    .width {
        max-width: 960px;
        /* make columns add to <880 for 60 gutter */
    }
    .content .width {
        width: 960px;
    }

    .panel3 {
        width: 29%;
        margin: 1em 2% 0;
        display:inline-block;
        vertical-align: top;
        font-size: 14px;
    }

    section.content article {
        margin: 0 auto;
        width: 660px;
    }

    section.content nav.toc {
        float: left;
    }


    section.content article.withtoc {
        float: right;
    }

    section.content aside {
        float: left;
        width: 220px;
    }

}

/* phoneish */

@media (max-width: 480px) {
    .wrap, .content .width, .home-section, section.content article {
        width: auto;
        max-width: 100%;
        overflow-x: scroll;
    }

    header.topbar .width {
        padding: 0 5px;
    }

    .highlighttable, section.content article blockquote {
        margin-left: 0;
    }
    .highlight pre {
        padding-left: 0;
    }
    body {
        padding-bottom: 20px;
    }

    #\_ {
        display: block;
        position: absolute;
        top: -60px;
        left: 0;
    }

}
